package com.example.demo.dao;

import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {
    User selectUserById(@Param("user_id") String user_id);

    User selectUserByTel(@Param("user_telephone") String user_telephone);

    void insertUser(@Param("user_id") String user_id, @Param("user_name") String user_name,
                    @Param("user_password") String user_password, @Param("user_telephone") String user_telephone,
                    @Param("user_address") String user_address, @Param("user_mailbox") String user_mailbox);

    void updateUser(@Param("user_id") String user_id, @Param("user_name") String user_name,
                    @Param("user_password") String user_password, @Param("user_telephone") String user_telephone,
                    @Param("user_address") String user_address, @Param("user_mailbox") String user_mailbox);
}
